package ru.gosoplata.view.ui 
{
	import flash.display.Sprite;
	import flash.text.TextField;
	/**
	 * ...
	 * @author 
	 */
	public class EasyBtn extends Sprite
	{
		private var _labelTxt:TextField=new TextField();
		
		public function get label():String 
		{
			return _labelTxt.text;
		}
		
		public function set label(value:String):void 
		{
			_labelTxt.text = value;
			
			graphics.clear();
			graphics.beginFill(0xC0C0C0);
			graphics.drawRect(0,0,width,height);
		}
		
		public function EasyBtn(label:String='') 
		{
			_labelTxt.autoSize = 'left';
			_labelTxt.selectable = false;
			addChild(_labelTxt);
			this.label = label;
		}
	}
}